// 锁定
import request from '@/router/axios';
export const requestLock = (data) => {
  return request({
    url: '/api/mes-warehouse/lockrequest/lock',
    method: 'post',
    // headers: {
    //   'Content-Type': 'application/json'
    // },
    // paramsSerializer: (data) => { },
    data
  });
};

// 锁定-导入Excel文件
export const lockFile = (param, file) => {
  let { lockedReason, lockedType } = param;
  return request({
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    url: `/api/mes-warehouse/lockrequest/lock-file?lockedReason=${lockedReason}&lockedType=${lockedType}`,
    method: 'post',
    data: file
  });
};
